package com.mmy.service.impl.visa;

import java.util.List;

/**
*类的介绍：签证所需材料信息 
*
*@author 	hanxl
*@date		2020-07-23
*@version		1.0
*/

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.mmy.dao.visa.TVisaStuffRepository;
import com.mmy.domain.visa.TVisaStuff;
import com.mmy.service.visa.TVisaStuffService;

@Service
public class TVisaStuffServiceImpl implements TVisaStuffService {
	@Autowired
	private TVisaStuffRepository tVisaStuffRepository;

	/* 获得最大材料编码 */
	public Object getMaxStuffID() {
		// TODO Auto-generated method stub
		return tVisaStuffRepository.getMaxStuffID();
	}

	/* 创建 */
	public void save(int stuffID) {
		// TODO Auto-generated method stub
		tVisaStuffRepository.save(stuffID);
	}

	public void save(TVisaStuff tVisaStuff) {
		// TODO Auto-generated method stub
		tVisaStuffRepository.save(tVisaStuff);
	}

	/* 查询该ID下所需的材料 */
	public List<TVisaStuff> findByVisaID(int iVisaID) {
		// TODO Auto-generated method stub
		return tVisaStuffRepository.findByVisaID(iVisaID);
	}

	/* 删除该LineID线路行程 */
	public void deleteByVisaID(int VisaID) {
		// TODO Auto-generated method stub
		tVisaStuffRepository.deleteByVisaID(VisaID);
	}
}
